home *** CD-ROM | disk | FTP | other *** search
/ Aminet 12 / Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso / Aminet / dev / misc / MakePROTO.lha / MakePROTO / MakePROTO.readme < prev    next >
Encoding:
Text File  |  1996-04-08  |  1.8 KB  |  61 lines

  1. Short:    More flexible replacement for MakeProto (DICE-C)
  2. Uploader: tcn@techbase.in-berlin.de (Timo C. Nentwig)
  3. Author:   tcn@techbase.in-berlin.de (Timo C. Nentwig)
  4. Type:     dev/misc
  5.  
  6.  
  7.   MakePROTO is a simple but useful tool written on a  boring  evening.
  8.   It automatically creates a prototype file for the given C-Source(s).
  9.  
  10.   Is does basicly the same as DICE's  MakeProto  does  but  it's  more
  11.   flexible so you can e.g. use it with SAS/C, too (like I do ...).
  12.  
  13.  
  14.   Usage:
  15.   ¯¯¯¯¯
  16.   You add prototype lines in the considering source(s) beginning  with
  17.   a special keyword, e.g.:
  18.  
  19.                    PROTO BOOL MakeDir (STRPTR name);
  20.  
  21.                                    or
  22.  
  23.                  Prototype BOOL MakeDir (STRPTR name);
  24.  
  25.  
  26.   Now you call MakePROTO with
  27.  
  28.          MakePROTO <file/pattern> PROTOKEYWORD proto/prototype
  29.  
  30.   and MakePROTO prints a useable prototype file listing (use a pipe to
  31.   direct it in a file).
  32.  
  33.  
  34.   SMakeFile:
  35.   ¯¯¯¯¯¯¯¯¯
  36.   [...]
  37.   proto:
  38.       @-delete include/bg_protos.h       >NIL:
  39.       @-echo noline "*E[2m    Making protos ... "
  40.       @-MakePROTO F *.c PK PROTO DT CPP >>include/bg_protos.h
  41.       @-echo "DONE*E[0m"
  42.   [...]
  43.  
  44.  
  45.   Arguments:
  46.   ¯¯¯¯¯¯¯¯¯
  47.   F=FILES/M/A       -> File(s) or pattern(s) to be scanned
  48.   PK=PROTOKEYWORD/K -> Keyword, see above (= "PROTO" or "Prototype")
  49.   DT=DEFINETYPE/S   -> SAS/C does not have it's own reserved word for
  50.                        prototypes like DICE so you might use e.g.
  51.                        "PROTO".
  52.                        This options adds a
  53.                        #define    <your_keyword>    <replacetype>
  54.                        at the beginning of the file.
  55.   CPP/S             -> Produce C++ comments
  56.   STATIC/S          -> For DEFINETYPE: <replacetype> is "static"
  57.                        otherwiese it is "extern".
  58.  
  59.   C-Source is included.
  60.  
  61.